package com.atguigu.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: charls
 * @Description:TODO
 * @Date: 2023/05/13/ 14:33
 * @Version: 1.0
 */

@ConfigurationProperties(prefix = "gulimall.thread")
@Component // 加到容器中
@Data
public class ThreadPoolConfigProperties {
    private Integer coreSize;
    private Integer maxSize;
    private Integer keepAliveTime;
}
